package com.linked.pay.pay.bean.dto;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonMappingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author :dbq
 * @date : 2023/3/2 15:13
 * @description : desc
 */
@Data
public class PayLogDTO {


    private String payId;

    private String orderId;

    /**
     * 支付状态。1、创建；2、支付；3、取消；4、退款
     */
    private Integer logStatus;

    private String methodValue;

    private String remarks;

    private String userId;

    public static PayLogDTO Building() {
        return new PayLogDTO();
    }

    public PayLogDTO withPayId(String payId) {
        this.payId = payId;
        return this;
    }

    public PayLogDTO withOrderId(String orderId) {
        this.orderId = orderId;
        return this;
    }

    public PayLogDTO withLogStatus(Integer logStatus) {
        this.logStatus = logStatus;
        return this;
    }

    public PayLogDTO withMethodValue(String methodValue) {
        this.methodValue = methodValue;
        return this;
    }

    public PayLogDTO withRemarks(String remarks) {
        this.remarks = remarks;
        return this;
    }

    public PayLogDTO withUserId(String userId) {
        this.userId = userId;
        return this;
    }

}
